﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Media.Imaging;
using Emgu.CV;
using System.Windows;

namespace TestApplication.business.src
{
    public class ImageProcessing
    {
        public static Bitmap NewEmptyImage(Int32 width, Int32 height, Color color)
        {
            Bitmap result = new Bitmap(width, height);
            using (Graphics grp = Graphics.FromImage(result))
            {
                grp.FillRectangle(new SolidBrush(color), 0, 0, width, height);
                return result;
            }
        }

        // Copies the entire bitmap.
        public static Bitmap CopyBitmap(Bitmap source)
        {
            return new Bitmap(source);
        }

    }
}
